<?php
namespace app\validate;

use share\validate\SceneValidate;

class PageValidate extends SceneValidate{

    protected $rule = [
        'page' => 'require|integer|>=:1',
        'size' => 'require|integer|>=:1|max:500',
        'info' => 'require'
    ];    

    protected $scene = [
        'pageInfo' => ['page','size'],
    ];
}